import "dotenv/config";
import { DataSource } from "typeorm";
import * as entities from "../src/entities";

export const AppDataSource = new DataSource({
	url: process.env.DATABASE_URL,
	entities: Object.values(entities),
	type: "mysql",
	migrations: ["migrate/migrations/**.ts"],
  migrationsTableName: 'migration_schemas'
});
